17.10.2011, 14:01
I have an big dialog and it is crash all of them!
but why i am do it right
Hey i want to say i have seen the try of this post: https://sampforum.blast.hk/showthread.php?tid=236758
Please help me
i use this method:
is in page number 2!
Please help!
i have make it like this:
Help me i need this solution!
but why i am do it right
Hey i want to say i have seen the try of this post: https://sampforum.blast.hk/showthread.php?tid=236758
Please help me
i use this method:
Код:
enum pInfo { pEnglish, pSerbian, } new PlayerInfo[MAX_PLAYERS][pInfo]; In your language dialog make that if player chooses English then = 1 and Serbian = 0 if Serbian then = 1 and English = 0. Now make command like that pawn Code: public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,0); if(PlayerInfo[playerid][pEnglish] == 1) { SendClientMessage(playerid,0xFF0000FF,"You suck"); } if(PlayerInfo[playerid][pSerbian] == 1) { SendClientMessage(playerid,0xFF0000FF,"You suck in serbian"); } } return 0; }
Please help!
i have make it like this:
Код:
if (strcmp("/kill", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pEnglish] == 1) { SetPlayerHealth(playerid,0); SendClientMessage(playerid,0xFF0000FF,"You suck"); } if(PlayerInfo[playerid][pSerbian] == 1) { SetPlayerHealth(playerid,0); SendClientMessage(playerid,0xFF0000FF,"You suck in serbian"); } } // i do not see return here why?