18.04.2009, 20:16
Hey
Now I know how to use GameTextForPlayer,I tryied to make a different text if the cop kill you (GTA style )
Si,I got that:
It gives me
on the If line
I read that i got to use strcmp to compare 2 strings,but how can i do it?
Thanks in advance
Now I know how to use GameTextForPlayer,I tryied to make a different text if the cop kill you (GTA style )
Si,I got that:
Code:
new string[50]; if(GetPlayerTeam(killerid) == "TEAM_COP") { format(string, sizeof(string), "BUSTED"); } else { format(string, sizeof(string), "WASTED"); } GameTextForPlayer(playerid, string, 3000, 2);
Code:
error 033: array must be indexed (variable "-unknown-")
I read that i got to use strcmp to compare 2 strings,but how can i do it?
Code:
if(strcmp(I don't know what to put here))