Whats wrong in this code? +rep
#1

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.

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;
}

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.

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}
}

Reply


Messages In This Thread
Whats wrong in this code? +rep - by Dustly - 29.02.2012, 10:08
Re: Whats wrong in this code? +rep - by emokidx - 29.02.2012, 10:11
Re: Whats wrong in this code? +rep - by Ricey - 29.02.2012, 10:12
Re: Whats wrong in this code? +rep - by Dustly - 29.02.2012, 10:18
Re: Whats wrong in this code? +rep - by Ricey - 29.02.2012, 10:31

Forum Jump:


Users browsing this thread: 2 Guest(s)