29.02.2012, 10:08
Errors
C:\Users\Dust\Desktop\Samp server\gamemodes\bp.pwn(146) : warning 202: number of arguments does not match definition
C:\Users\Dust\Desktop\Samp server\gamemodes\bp.pwn(147) : error 001: expected token: "*then", but found "{"
C:\Users\Dust\Desktop\Samp server\gamemodes\bp.pwn(149) : warning 202: number of arguments does not match definition
Heres the code.
My array is set up correctly but I have No Damn idea whats the error highlighted in red is, or how to fix it.
JUST INCASE its my aray. Here it is.
C:\Users\Dust\Desktop\Samp server\gamemodes\bp.pwn(146) : warning 202: number of arguments does not match definition
C:\Users\Dust\Desktop\Samp server\gamemodes\bp.pwn(147) : error 001: expected token: "*then", but found "{"
C:\Users\Dust\Desktop\Samp server\gamemodes\bp.pwn(149) : warning 202: number of arguments does not match definition
Heres the code.
Quote:
public OnPlayerSpawn(playerid) { SetPlayerToTeamColor(playerid); if GetPlayerSkin(playerid, 287) { new rand = random(sizeof(RandomUSASpawn)); SetPlayerPos(playerid, RandomUSASpawn[rand][0],RandomUSASpawn[rand][1],RandomUSASpawn[rand][2],RandomUSASpawn[rand][3]); } return 1; } |
JUST INCASE its my aray. Here it is.
Quote:
new Float:RandomUSASpawn[][4] = { {289.5552,1896.6105,17.6406,270.0378}, {289.5629,1885.3944,17.6406,267.6761}, {290.0782,1855.7422,17.6406,267.8445}, {291.0180,1850.6392,17.6406,271.2911}, {292.0120,1844.9946,17.6406,260.3243} } |