Quote:
Originally Posted by John_F
pawn Код:
if (strcmp("/lsa", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid) == 1) { SetPlayerPos(playerid, 1990.6156,-2335.7556,13.5469); SetPlayerFacingAngle(playerid, 82.8390); SendClientMessage(playerid, COLOR_GREEN, "You have been teleported."); } else return SendClientMessage(playerid, COLOR_BRIGHTRED, "You are not Administrator/Moderator");
return 0; }
You need an if statement if you want to use an else, and you need to put the statement in the form of a condition.
|
I got 6 errors when I try this way.