23.06.2010, 05:27
Код:
cmd(flip, playerid, params[]) { new amount, name[50]; if(!sscanf(params, "u", name, amount)) { new State=GetPlayerState(playerid); if (IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { if(File[playerid][Admin] >= 1) { new VehicleID; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); GetVehicleZAngle(VehicleID, Angle); SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); GameTextForPlayer(playerid,"~b~FLIPPED!",4000,3); SendClientMessage(playerid, BLUE, "FLIPPED!"); else return SendClientMessage(playerid,red,"You Are Not Authorized To Use This Command"); } else return SendClientMessage(playerid,red,"You Must Be In A Vehicle To Use This Command"); } } return 1; }
Код:
else return SendClientMessage(playerid,red,"You Are Not Authorized To Use This Command");
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAN~1.PWN(1338) : error 029: invalid expression, assumed zero C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAN~1.PWN(1338) : warning 215: expression has no effect C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAN~1.PWN(1338) : error 001: expected token: ";", but found "return" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
why does this fail
Код:
new to_others[MAX_CHATBUBBLE_LENGTH+1]; format(to_others,MAX_CHATBUBBLE_LENGTH,"%s(%d) Says: %s",text); SetPlayerChatBubble(playerid,to_others,RED,35.0,10000);