warrning 202 and 204
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

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
Reply
#5

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

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

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

im using dini...
Reply
#9

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;
}
Reply
#10

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"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)