18.06.2011, 11:27
i input that code on my game mode
but pawno said this:
please help....................
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { CMDtunt(playerid, params[]) { GetPlayerPos(playerid, pPos[playerid][0], pPos[playerid][1], pPos[playerid][2]); //Stores the players positons in an array pInt[playerid] = GetPlayerInterior(playerid); //Stores the players interior SetPlayerPos(playerid, -1114.1460, 378.5243, 14.1484); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, -1,"Sekarang Anda Telah Memasuki /stunt"); return 1; } CMD:back(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 50.0, -1114.1460, 378.5243, 14.1484)) return SendClientMessage(playerid, -1, "You must be near the stunt course!"); SetPlayerPos(playerid, pPos[playerid][0], pPos[playerid][1], pPos[playerid][2]); //Sets the players position to the position we saved in /stunt SetPlayerInterior(playerid, pInt[playerid]); //Sets the interior to the one we saved in /stunt return 1; } CMD:v(playerid, params[]) { new carId, Float, Float:y, Float:z; if(sscanf(params, "i", carId)) return SendClientMessage(playerid, -1, "Syntax: /v carId"); if(carId < 400 || carId > 611) return SendClientMessage(playerid, -1, "Invalid car Id, (400 - 611)"); if(!IsPlayerInRangeOfPoint(playerid, 15.0, -1114.1460, 378.5243, 14.1484)) return SendClientMessage(playerid, -1, "You must be near the stunt course!"); //This checks if you're near the stun area GetPlayerPos(playerid, x, y, z); CreateVehicle(carId, x, y + 5, z, 0,-1, -1, -1); SendClientMessage(playerid, -1, "Car spawned at your location!"); return 1; } |
Quote:
C:\Documents and Settings\User\Desktop\Server SA-MP OPEN BETA(ary)\gamemodes\tombodos.pwn(477) : error 029: invalid expression, assumed zero C:\Documents and Settings\User\Desktop\Server SA-MP OPEN BETA(ary)\gamemodes\tombodos.pwn(477) : error 017: undefined symbol "cmd_stunt" C:\Documents and Settings\User\Desktop\Server SA-MP OPEN BETA(ary)\gamemodes\tombodos.pwn(477) : error 029: invalid expression, assumed zero C:\Documents and Settings\User\Desktop\Server SA-MP OPEN BETA(ary)\gamemodes\tombodos.pwn(477) : fatal error 107: too many error messages on one line |