18.01.2012, 11:41
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys == 16) { if(IsInShml[playerid] > 0) { new Float:X,Float:Y,Float:Z; GetVehiclePos(IsInShml[playerid], X, Y, Z); SetPlayerPos(playerid, X+4, Y, Z); SetPlayerInterior(playerid, 0); IsInShml[playerid]=0; } } return 1; } if (PRESSED(KEY_FIRE)) { if (IsPlayerInAnyVehicle(playerid)) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); } } return 1; }
Код:
C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4806) : error 010: invalid function or declaration C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4808) : error 010: invalid function or declaration C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4813) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.