Help with this line -
RuvExArisa - 24.12.2015
[3:49:34 PM] ☠✞Siv✞☠: C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8543) : error 001: expected token: ",", but found "-string-"
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8543) : error 001: expected token: ";", but found ")"
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8543) : error 029: invalid expression, assumed zero
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8543) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
[3:50:09 PM] ☠✞Siv✞☠: Here's the line:
[3:50:17 PM] ☠✞Siv✞☠: if(!PlayerInfo[playerb][pVeh] && !PlayerInfo[playerb][pVVeh]) return SendClientMessage(playerid, COLOR_ORANGE "This player doesn't own a vehicle.");
Re: Help with this line -
thefirestate - 24.12.2015
if(!PlayerInfo[playerb][pVeh] && !PlayerInfo[playerb][pVVeh]) return SendClientMessage(playerid, COLOR_ORANGE, "This player doesn't own a vehicle.");
Re: Help with this line -
RuvExArisa - 24.12.2015
Quote:
Originally Posted by thefirestate
if(!PlayerInfo[playerb][pVeh] && !PlayerInfo[playerb][pVVeh]) return SendClientMessage(playerid, COLOR_ORANGE, "This player doesn't own a vehicle.");
|
what's the difference between the line I posted and the one you gave
Re: Help with this line -
thefirestate - 24.12.2015
Quote:
Originally Posted by RuvExArisa
what's the difference between the line I posted and the one you gave
|
SendClientMessage(playerid, COLOR_ORANGE
, "This player doesn't own a vehicle.");
Re: Help with this line -
Amunra - 25.12.2015
Just clarify @thefirestate
Quote:
Originally Posted by thefirestate
SendClientMessage(playerid, COLOR_ORANGE, "This player doesn't own a vehicle.");
|
You forget to add
, After COLOR_ORANGE
Your Work
PHP код:
SendClientMessage(playerid, COLOR_ORANGE "This player doesn't own a vehicle.");
True work
PHP код:
SendClientMessage(playerid, COLOR_ORANGE, "This player doesn't own a vehicle.");//your forget to add "," in your work
Re: Help with this line -
RuvExArisa - 25.12.2015
Okay that line fixed now, I have this one:
Errors
Код:
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8631) : error 029: invalid expression, assumed zero
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8631) : warning 215: expression has no effect
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8631) : error 001: expected token: ";", but found ")"
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8631) : error 029: invalid expression, assumed zero
C:\Users\Siv\Desktop\Pawno\AGRP.pwn(8631) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Line
Quote:
format(string, sizeof(string), "[ASELL]: "WHT"%s "ORG"has sold "WHT"%s's "ORG"vehicle "WHT"(ID:%d)");, RPN(playerid), RPN(playerb), carid);
|
The WHT and ORG are colors that's defined in the script. They aren't causing the error.
Re: Help with this line -
thefirestate - 25.12.2015
format(string, sizeof(string), "[ASELL]: "WHT"%s "ORG"has sold "WHT"%s's "ORG"vehicle "WHT"(ID:%d)", RPN(playerid), RPN(playerb), carid);
previous one:
format(string, sizeof(string), "[ASELL]: "WHT"%s "ORG"has sold "WHT"%s's "ORG"vehicle "WHT"(ID:%d)"
);, RPN(playerid), RPN(playerb), carid);
The red is not supposed to be there.
Re: Help with this line -
Amunra - 25.12.2015
Quote:
Originally Posted by thefirestate
format(string, sizeof(string), "[ASELL]: "WHT"%s "ORG"has sold "WHT"%s's "ORG"vehicle "WHT"(ID:%d)", RPN(playerid), RPN(playerb), carid);
previous one:
format(string, sizeof(string), "[ASELL]: "WHT"%s "ORG"has sold "WHT"%s's "ORG"vehicle "WHT"(ID:%d)");, RPN(playerid), RPN(playerb), carid);
The red is not supposed to be there.
|
yeah like this For more
Wiki samp format
I hope this can help you
Re: Help with this line -
thefirestate - 25.12.2015
Quote:
Originally Posted by Amunra
|
Aah?