Hallo Samp team und user
ich habe nun ein Problem
unzwar habe ich ein paar Errors bei meinem buylevel befehl
hier der befehl:
dcmd_getlevel(playerid,params[])
{
#pragma unused params
new lvl3preis=1000;
new lvl4preis=1500;
if(GetPlayerScore(playerid,1))
{
if(!GetPVarInt(playerid,"Respektpunkte",5))
{
SendClientMessage(playerid,BLAU,"Du brauchst 5 Respektpunkte!");
}
else
{
SetPlayerScore(playerid,2);
SetPVarInt(playerid,"Level",2);
SendClientMessage(playerid,BLAU,"Du bist aufgestiegen ins Level 2");
}
}
else if(GetPlayerScore(playerid,2))
{
if(!GetPVarInt(playerid,"Respektpunkte",10))
{
SendClientMessage(playerid,BLAU,"Du brauchst 10 Respektpunkte!");
}
else
{
SetPlayerScore(playerid,3);
SetPVarInt(playerid,"Level",3);
GivePlayerMoney(playerid,lvl3preis);
SendClientMessage(playerid,BLAU,"Du bist aufgestiegen ins Level 3");
}
}
else if(GetPlayerScore(playerid,3))
{
if(!GetPVarInt(playerid,"Respektpunkte",20))
{
SendClientMessage(playerid,BLAU,"Du brauchst 20 Respektpunkte!");
}
else
{
SetPlayerScore(playerid,4);
SetPVarInt(playerid,"Level",4);
GivePlayerMoney(playerid,lvl4preis);
SendClientMessage(playerid,BLAU,"Du bist aufgestiegen ins Level 4");
}
}
return 1;
}
hier die errors:
C:\Users\DereezZeD\Desktop\Selfmade-server\gamemodes\SelfmadeV0.0.3.pwn(315) : warning 202: number of arguments does not match definition
C:\Users\DereezZeD\Desktop\Selfmade-server\gamemodes\SelfmadeV0.0.3.pwn(317) : warning 202: number of arguments does not match definition
C:\Users\DereezZeD\Desktop\Selfmade-server\gamemodes\SelfmadeV0.0.3.pwn(328) : warning 202: number of arguments does not match definition
C:\Users\DereezZeD\Desktop\Selfmade-server\gamemodes\SelfmadeV0.0.3.pwn(330) : warning 202: number of arguments does not match definition
C:\Users\DereezZeD\Desktop\Selfmade-server\gamemodes\SelfmadeV0.0.3.pwn(342) : warning 202: number of arguments does not match definition
C:\Users\DereezZeD\Desktop\Selfmade-server\gamemodes\SelfmadeV0.0.3.pwn(344) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Warnings.
also der eine error is was andres aber die warnings warum sind die da?
danke leute