Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Jancis_LV on February 08, 2010, 06: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)
-
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.