SA-MP Forums Archive
warrning 202 and 204 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: warrning 202 and 204 (/showthread.php?tid=244556)



warrning 202 and 204 - [ProX]BlueFire - 27.03.2011

how i fix this?:
Код:
number of arguments does not match definition
pawn Код:
new score;

GetPlayerScore(playerid, score);

SetPlayerScore(playerid, score);
and this warrning:
Код:
warning 204: symbol is assigned a value that is never used: "veh"
u used it like this:
pawn Код:
new veh;
veh = CreateObject
veh = DestroyObject



Re: warrning 202 and 204 - randomkid88 - 27.03.2011

1) That isn't the correct function:
pawn Код:
new score;
score = GetPlayerScore(playerid);
2)Unless you are trying to do something specific with that object, you don't need to give it an id. If you are going to use it in a gate or something, then that error will go away when you use it in another function.


Re: warrning 202 and 204 - aircombat - 27.03.2011

in the 1st error why u get player score then set it the same??

in the 2nd one , its a non-harm warning it means that u didnt use veh in anything


Re: warrning 202 and 204 - [ProX]BlueFire - 27.03.2011

Quote:
Originally Posted by randomkid88
Посмотреть сообщение
1) That isn't the correct function:
pawn Код:
new score;
score = GetPlayerScore(playerid);
i got an error from thet -.-"
Код:
error 010: invalid function or declaration



Re: warrning 202 and 204 - mprofitt - 27.03.2011

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
i got an error from thet -.-"
Код:
error 010: invalid function or declaration
Show more of the code


Re: warrning 202 and 204 - [ProX]BlueFire - 27.03.2011

pawn Код:
new score;
score = GetPlayerScore(playerid);
public OnPlayerDisconnect(playerid, reason)
{
GetPlayerScore(playerid, score);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerScore(playerid, score);
return 1;
}



Re: warrning 202 and 204 - aircombat - 27.03.2011

that thing ain't gonna work cause u aren't using dini


Re: warrning 202 and 204 - [ProX]BlueFire - 27.03.2011

im using dini...


Re: warrning 202 and 204 - mprofitt - 27.03.2011

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
pawn Код:
new score;
score = GetPlayerScore(playerid);
public OnPlayerDisconnect(playerid, reason)
{
     GetPlayerScore(playerid, score);
     return 1;
}
public OnPlayerSpawn(playerid)
{
     SetPlayerScore(playerid, score);
     return 1;
}
pawn Код:
new score;
// score = GetPlayerScore(playerid);
public OnPlayerDisconnect(playerid, reason)
{
     score = GetPlayerScore(playerid);
     return 1;
}
public OnPlayerSpawn(playerid)
{
     SetPlayerScore(playerid, score);
     return 1;
}



Re: warrning 202 and 204 - [ProX]BlueFire - 27.03.2011

pawn Код:
#include <a_samp>
#include <dini>

new score;
score = GetPlayerScore(playerid);
public OnPlayerDisconnect(playerid, reason)

{
     GetPlayerScore(playerid, score);
     return 1;
}
public OnPlayerSpawn(playerid)
{
     SetPlayerScore(playerid, score);
     return 1;
}
errors/warnnings:
Код:
warning 202: number of arguments does not match definition
error 010: invalid function or declaration
and this:
pawn Код:
new Float:X, Float:Y, Float:Z, Float:Angle;
warning:
Код:
warning 203: symbol is never used: "Angle"