22.11.2010, 23:34
Hey,
So Im trying to make a command that gets a players name and if its correct opens the gate, If not it dosent and sends a message.
1 Error:
So Im trying to make a command that gets a players name and if its correct opens the gate, If not it dosent and sends a message.
pawn Код:
COMMAND:open(playerid,params)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
if(strfind(playername, "<Name>", true) != return SendClientMessage(playerid,COLOR_YELLOW,"[INFO]: UnAuthorised Access Attempt! The Admins Have been alerted!");
{
MoveDynamicObject(BradGate,1007.96484375,2425.19531250,12.37271976,5);
}
return 1;
}
pawn Код:
D:\Users\Bradley_MS1\Desktop\**** ***\gamemodes\****.pwn(2137) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.