public OnPlayerSpawn(playerid)
{
GivePlayerWeapon(playerid, weapons); // undefined symbol "weapons"
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new weapons[13][2];
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
return 0;
}
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TwinkisFS.pwn(163) : error 017: undefined symbol "weapons"
public OnPlayerSpawn(playerid)
{
GivePlayerWeapon(playerid, weapons); // undefined symbol "weapons"
return 1;
}
new weapons[13][2]; |
new weapons[13][2][MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
for (new i = 0; i < 13; i++)
{
GivePlayerWeapon(playerid,weapons[i][0][playerid],weapons[i][1][playerid]);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid,i,weapons[i][0][playerid],weapons[i][1][playerid]);
}
return 0;
}
public OnFilterScriptInit() |
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TwinkisFS.pwn(14) : warning 204: symbol is assigned a value that is never used: "weapons" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TwinkisFS.pwn(16 : error 017: undefined symbol "weapons" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TwinkisFS.pwn(16 : warning 215: expression has no effect C:\Users\Maki\Desktop\server 0.3d\gamemodes\TwinkisFS.pwn(16 : error 001: expected token: ";", but found "]" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TwinkisFS.pwn(16 : error 029: invalid expression, assumed zero C:\Users\Maki\Desktop\server 0.3d\gamemodes\TwinkisFS.pwn(16 : fatal error 107: too many error messages on one line |
GivePlayerWeapon(playerid,weapons[i][0][playerid],weapons[i][1][playerid]); |
new weapons[13][2][MAX_PLAYERS];
new weapons[13][2][MAX_PLAYERS];