09.06.2012, 18:05
Quote:
Код:
CMD:setplate(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 4) { if( !IsPlayerInAnyVehicle( iVictim ) ) return SendClientMessage( playerid, -1, "Error: That player isn't in a vehicle." ); new szString[128], pVeh, Float:vPos[4]; pVeh = GetPlayerVehicleID( iVictim ); format( v_Plate[pVeh], 32, "%s", szPlate ); SetVehicleNumberPlate( pVeh, szPlate ); GetPlayerPos( iVictim, vPos[0], vPos[1], vPos[2] ); GetVehicleZAngle( pVeh, vPos[3] ); SetVehicleToRespawn( pVeh ); SetVehiclePos( pVeh, vPos[0], vPos[1], vPos[2] ); SetVehicleZAngle( pVeh, vPos[3] ); PutPlayerInVehicle( iVictim, pVeh, 0 ); format( szString, 128, "An administrator set your vehicle plate to %s.", szPlate ); SendClientMessage( playerid, -1, szString ); return 1; } else return SendClientMessage(playerid, COLOR_RED, "Error: You are not an admin" ); } else return SendClientMessage(playerid, COLOR_RED, "Error: That player isn't connected." ); } |
Код:
C:\Users\****\Desktop\****\****\gamemodes\FSRP.pwn(42089) : error 017: undefined symbol "iVictim" C:\Users\****\Desktop\****\****\gamemodes\gamemodes\FSRP.pwn(42093) : error 017: undefined symbol "iVictim" C:\Users\****\Desktop\****\****\gamemodes\gamemodes\FSRP.pwn(42095) : error 017: undefined symbol "szPlate" C:\Users\****\Desktop\****\****\gamemodes\FSRP.pwn(42096) : error 017: undefined symbol "szPlate" C:\Users\****\Desktop\****\****\gamemodes\gamemodes\FSRP.pwn(42098) : error 017: undefined symbol "iVictim" C:\Users\****\Desktop\****\****\gamemodes\FSRP.pwn(42103) : error 017: undefined symbol "iVictim" C:\Users\****\Desktop\****\****\gamemodes\FSRP.pwn(42105) : error 017: undefined symbol "szPlate" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.