new cartype = GetPlayerVehicleID(playerid); new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SetPlayerPos(playerid,2343.4612,1392.0447,10);//gyalogos } else if(IsPlayerInVehicle(playerid, cartype) == 1) { SetVehiclePos(cartype,2343.4612,1392.0447,10);//jármûves SetVehicleZAngle(cartype,270); } else { SetPlayerPos(playerid,2343.4612,1392.0447,10);//gyalogos }return 1; }
G:\\test.pwn(285) : error 017: undefined symbol \"playerid\"G:\\test.pwn(286) : error 017: undefined symbol \"playerid\"G:\\test.pwn(290) : error 017: undefined symbol \"playerid\"G:\\test.pwn(292) : error 017: undefined symbol \"playerid\"G:\\test.pwn(299) : error 017: undefined symbol \"playerid\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
CMD:teléd(playerid,params[]){ new pName[MAX_PLAYER_NAME]; new string[256];if(IsPlayerInAnyVehicle(playerid)){SetVehiclePos(GetPlayerVehicleID(playerid), 2167.4006,2397.4448,23.1758);// autoteleportSetPlayerInterior(playerid, 0);GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/teléd)\", pName);SendClientMessageToAll(COLOR_LIGHTBLUE, string);} else {SetPlayerPos(playerid, 2168.4607,2395.9060,23.6016);// gyalogos teleportSetPlayerInterior(playerid, 0);SetPlayerFacingAngle(playerid, 301.5956);GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/teléd)\", pName);SendClientMessageToAll(COLOR_LIGHTBLUE, string);}return 1;}
C:\\Users\\Pisti\\Desktop\\PAWNO\\gamemodes\\test.pwn(287) : error 029: invalid expression, assumed zeroC:\\Users\\Pisti\\Desktop\\PAWNO\\gamemodes\\test.pwn(287) : error 017: undefined symbol \"cmd_tel\"C:\\Users\\Pisti\\Desktop\\PAWNO\\gamemodes\\test.pwn(287) : error 029: invalid expression, assumed zeroC:\\Users\\Pisti\\Desktop\\PAWNO\\gamemodes\\test.pwn(287) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
//Teleportok-------------------------------------------------------------------- CMD:teléd(playerid,params[]) { new pName[MAX_PLAYER_NAME]; new string[256];if(IsPlayerInAnyVehicle(playerid)){SetVehiclePos(GetPlayerVehicleID(playerid), 2167.4006,2397.4448,23.1758);// autoteleportSetPlayerInterior(playerid, 0);GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/lv)\", pName);SendClientMessageToAll(COLOR_NARANCS, string);} else {SetPlayerPos(playerid, 2168.4607,2395.9060,23.6016);// gyalogos teleportSetPlayerInterior(playerid, 0);SetPlayerFacingAngle(playerid, 301.5956);GetPlayerName(playerid, pName, sizeof(pName));format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/lv)\", pName);SendClientMessageToAll(COLOR_NARANCS, string);}return 1;}
#include <a_samp>#include <zcmd> //Teleportok--------------------------------------------------------------------CMD:teled(playerid, params[]){ new pName[MAX_PLAYER_NAME]; new string[256]; if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 2167.4006,2397.4448,23.1758);// autoteleport SetPlayerInterior(playerid, 0); GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/lv)\", pName); SendClientMessageToAll(-1, string); } else { SetPlayerPos(playerid, 2168.4607,2395.9060,23.6016);// gyalogos teleport SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 301.5956); GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/lv)\", pName); SendClientMessageToAll(-1, string); } return 1;}
//Teleportok-------------------------------------------------------------------- CMD:tele(playerid,params[]) { new pName[MAX_PLAYER_NAME]; new string[256]; if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 2167.4006,2397.4448,23.1758);// autoteleport SetPlayerInterior(playerid, 0); GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/lv)\", pName); SendClientMessageToAll(COLOR_NARANCS, string); } else { SetPlayerPos(playerid, 2168.4607,2395.9060,23.6016);// gyalogos teleport SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 301.5956); GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"%s El teleportált! {24FF0A}(/lv)\", pName); SendClientMessageToAll(COLOR_NARANCS, string); } return 1; }
CMD:teled(playerid, params[]){ if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),-1917.4590,293.9239,41.0469); } else { // SetPlayerPos(playerid,-1917.4590,293.9239,41.0469); } return 1; }