kteam = GetPlayerTeam(killerid);
pteam = GetPlayerTeam(playerid);
if(strcmp(kteam,pteam, true ) == 0 ) {
// Do stuff
}
Where is problem?
error 035: argument type mismatch (argument 1)
Quote from: Jancis_LV on February 08, 2010, 04:01:11 PM
kteam = GetPlayerTeam(killerid);
pteam = GetPlayerTeam(playerid);
if(strcmp(kteam,pteam, true ) == 0 ) {
// Do stuff
}
Where is problem?
error 035: argument type mismatch (argument 1)
You are doing it WRONG.
Strcmp is used for string comparison only. To compare two numbers just use
if(kteam==pteam){}.
Thanks, Boss.