public OnPlayerSelectedMenuRow(playerid, row) { new Menu:current; current = GetPlayerMenu(playerid); if(current == Vehicles) { switch(row) { case 0:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(522,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } case 1:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(461,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } case 2:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(451,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } case 3:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(415,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } case 4:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(411,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } case 5:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(480,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } case 6:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(506,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } case 7:{ new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(471,X,Y,Z,0,-1, -1); SendClientMessage(playerid, COLOR_RED, "Vehicle Spawned"); } } } return 1; }
C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(905) : warning 202: number of arguments does not match definition C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(911) : warning 202: number of arguments does not match definition C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(917) : warning 202: number of arguments does not match definition C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(923) : warning 202: number of arguments does not match definition C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(929) : warning 202: number of arguments does not match definition C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(935) : warning 202: number of arguments does not match definition C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(941) : warning 202: number of arguments does not match definition C:\Users\Madhouse\Desktop\Server\gamemodes\jumbo.pwn(947) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Warnings.
CreateVehicle
Originally Posted by Felle
Try adding a respawn delay (not including that is what's giving you warnings) to the end of each CreateVehicle call. Bear in mind it's in seconds - just add 1 or something.
|
Originally Posted by Abernethy
Woah, it was right infront of me.
Thanks guys. It's fixed, I'll test it out. |