Help Me, Error - 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: Help Me, Error (
/showthread.php?tid=277086)
Help Me, Error -
padrino200 - 16.08.2011
Hello everyone, I have a errror with pawno
here is the errors
pawn Код:
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : error 029: invalid expression, assumed zero
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : warning 215: expression has no effect
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : error 001: expected token: ";", but found ")"
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : error 029: invalid expression, assumed zero
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : fatal error 107: too many error messages on one line
pawn Код:
if(Keys == KEY_ANALOG_UP ,, Keys == KEY_WALK);
{
if(selezionato[playerid] < 4)
{
selezionato[playerid] = selezionato[playerid] + 14 - 3;
}else{
selezionato[playerid] -= 3;
}
Draw(playerid);
}
if(Keys == KEY_ANALOG_DOWN ,, Keys == KEY_SPRINT && GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)
{
if(selezionato[playerid] > 11)
{
selezionato[playerid] = selezionato[playerid] - 14 + 3;
}else{
selezionato[playerid] += 3;
}
Draw(playerid);
}
if(Keys ==KEY_ACTION)
{
new sel;
sel=selezionato[playerid];
if(sel==12)
{
if(Player[playerid][cifre] >= 1)
{
strdel(Player[playerid][composed], Player[playerid][cifre]-1, Player[playerid][cifre]);
TextDrawSetString(numero[playerid],Player[playerid][composed]);
Player[playerid][cifre]--;
}
}
if(sel==14)
{
DestroyCellTextDraws(playerid);
new i = playerid;
Player[i][composed] = 0;
Player[i][cifre] = 0;
mode[playerid] = 0;
TextDrawHideForAll(dietro[i]);
TextDrawHideForAll(n73[i]);
TextDrawHideForAll(display[i]);
TextDrawHideForAll(marca[i]);
TextDrawHideForAll(fotocamera[i]);
TextDrawHideForAll(joy[i]);
TextDrawHideForAll(box[i]);
TextDrawHideForAll(stt[i]);
TextDrawHideForAll(uno[i]);
TextDrawHideForAll(due[i]);
TextDrawHideForAll(tre[i]);
TextDrawHideForAll(quattro[i]);
TextDrawHideForAll(cinque[i]);
TextDrawHideForAll(sei[i]);
TextDrawHideForAll(sette[i]);
TextDrawHideForAll(otto[i]);
TextDrawHideForAll(nove[i]);
TextDrawHideForAll(asterisco[i]);
TextDrawHideForAll(zero[i]);
TextDrawHideForAll(cancelletto[i]);
TextDrawHideForAll(rosso[i]);
TextDrawHideForAll(verde[i]);
}
sorry for my English, I'm Italian
Thanks in advance
Re : Help Me, Error -
Soumi - 16.08.2011
Error Line please?
Re: Help Me, Error -
Ash. - 16.08.2011
What are the two commas for in your if statement?
Re: Help Me, Error -
padrino200 - 16.08.2011
This error is the line:
pawn Код:
if(Keys == KEY_ANALOG_UP ,, Keys == KEY_WALK)
Re: Help Me, Error -
=WoR=Varth - 16.08.2011
NVM
pawn Код:
if(Keys == KEY_ANALOG_UP , Keys == KEY_WALK)
Re: Help Me, Error -
Ash. - 16.08.2011
The single comma wouldn't work either, you need "||" (or statement)
Re: Help Me, Error -
Roperr - 16.08.2011
Why are there two "," between KEY_ANALOG_UP and Keys
You have to replace those ,, with &&
Re: Help Me, Error -
padrino200 - 16.08.2011
error solved, thanks to all