SERVER: unknown command problem
#1

Код:
if(!strcmp(cmdtext,"/turvavцц", true))
if(PlayerInfo[playerid][pTurvavoo] == 0)
{
new string2[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string2, sizeof(string2), "%s kinnitab turvavцц", pname);
SendLocalMessage(playerid, LILLA, 7, string2);
PlayerInfo[playerid][pTurvavoo] = 1;
}
else if(PlayerInfo[playerid][pTurvavoo] == 1)
{
SendClientMessage(playerid, PUNANE, "Sul on juba turvavцц peal");
return 1;
}
when i type /turvavцц then command works but it also types SERVER: Unknown command
and belive it is Firstname_lastname kinnitab turvavцц

whats the problem?
Reply
#2

pawn Код:
if(!strcmp(cmdtext,"/turvavцц", true))
if(PlayerInfo[playerid][pTurvavoo] == 0)
{
new string2[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string2, sizeof(string2), "%s kinnitab turvavцц", pname);
SendLocalMessage(playerid, LILLA, 7, string2);
PlayerInfo[playerid][pTurvavoo] = 1;
}
else if(PlayerInfo[playerid][pTurvavoo] == 1)
{
SendClientMessage(playerid, PUNANE, "Sul on juba turvavцц peal");
}
return 1;
}
Reply
#3

when i add it then my pawno crashes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)