06.04.2010, 19:36
Код:
if(IsPlayerInVehicle(playerid, 520) || i == callingplayer)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Stupid error..
if(IsPlayerInVehicle(playerid, 520) || i == callingplayer)
if(IsPlayerInVehicle(playerid, 520) || i == callingplayer(playerid))
if(IsPlayerInVehicle(playerid, 520) || i == callingplayer[playerid])
this : Код:
if(IsPlayerInVehicle(playerid, 520) || i == callingplayer[playerid]) |
Originally Posted by [IF
MavericK ]
Edit: It doesn't work.. |
forward ChiamaTG(playerid);
if(strcmp(cmdtext, "/ctg", true) == 0) { new callingplayer[MAX_PLAYER_NAME]; GetPlayerName(playerid, callingplayer, sizeof(callingplayer)); format(string, sizeof(string), " Mayday! Mayday! Qui %s, richiedo supporto aereo!", callingplayer); SendClientMessageToAll(0xFFFF00AA, string); ChiamaTG(playerid); return 1; }
public ChiamaTG(playerid) { new callingplayer[MAX_PLAYER_NAME]; GetPlayerName(playerid, callingplayer, sizeof(callingplayer)); new string[128]; format(string, sizeof(string), "Mayday, Mayday. Qui %s richiedo supporto aereo!", callingplayer); new name[MAX_PLAYER_NAME]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerName(i, name, sizeof(name)); if(strfind(name, "[TG]", true) != -1) { GameTextForPlayer(i, string, 3000, 3); if(IsPlayerInVehicle(i, 520) || i == callingplayer[playerid]) { } else { SetPlayerPos(i, 298.8918,1806.5530,17.6406); } } } } return 1; }