Convert to zcmd?
#3

Tried that. Its a FS btw.

(95) : error 017: undefined symbol "PlayerInfo"
(95) : warning 215: expression has no effect
(95) : error 001: expected token: ";", but found "]"
(95) : error 029: invalid expression, assumed zero

PHP код:
CMD:operation(playeridparams[])
{
    new 
id;
    if(
sscanf(params"d"id)) return SendClientMessage(playerid0xffffffff"[Usage]: /operation <playerid>");
    if(
PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == || PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid0xffffffff"You're not medic!");
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playerid0xffffffff"Invalid playerid!");
    if(!
Injured[id]) return SendClientMessage(playerid0xffffffff"This person isn't injured!");
    
TogglePlayerControllable(id0);
    
TogglePlayerControllable(playerid0);
    
SendClientMessage(id0xffffffff"A medic started to operate you!");
    
SendClientMessage(playerid0xffffffff"You started an operation!");
    
SetTimerEx("OperationFinish"1800000"dd"playeridid);
    return 
1;

Reply


Messages In This Thread
Convert to zcmd? - by remyguys - 27.11.2011, 16:26
Re: Convert to zcmd? - by Steven82 - 27.11.2011, 16:34
Re: Convert to zcmd? - by remyguys - 27.11.2011, 16:53
Re: Convert to zcmd? - by Kostas' - 27.11.2011, 16:54
Re: Convert to zcmd? - by remyguys - 27.11.2011, 16:56
Re: Convert to zcmd? - by Kostas' - 27.11.2011, 16:57
Re: Convert to zcmd? - by remyguys - 27.11.2011, 16:58
Re: Convert to zcmd? - by remyguys - 27.11.2011, 17:04
Re: Convert to zcmd? - by Kostas' - 27.11.2011, 17:05
Re: Convert to zcmd? - by remyguys - 27.11.2011, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)