Fatal 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)
+--- Thread: Fatal Error (
/showthread.php?tid=332904)
Fatal Error -
HondaCBR - 09.04.2012
pawn Код:
format(globalcar1[playerid],sizeof(globalcar1[playerid]),"%s\t\t (UID: %d)",aVehicleNames[ model1[playerid] - 400 ],PlayerInfo[playerid][pCarKey1]);
Код:
error 001: expected token: "]", but found "-identifier-"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Re: Fatal Error -
Boooth - 09.04.2012
Why has the dest string been set to player specific?
pawn Код:
format(globalcar1,sizeof(globalcar1),"%s\t\t (UID: %d)",aVehicleNames[ model1[playerid] - 400 ],PlayerInfo[playerid][pCarKey1]);
There you go.
Re: Fatal Error -
HondaCBR - 09.04.2012
because otherwise its set for other players too, look at this:
https://sampforum.blast.hk/showthread.php?tid=332901
Re: Fatal Error -
Boooth - 09.04.2012
No, that is silly, you are trying to set a set to be player specific.
That won't work.
You send the dest string in a SendClientMessage or in a Dialog to a specific player.
So what I have done is right.
Re: Fatal Error -
HondaCBR - 09.04.2012
I know but how can I fix my issue?
Re: Fatal Error -
Boooth - 09.04.2012
I haven't really looked into it, also why are you attempting to store a format() into a string?
Re: Fatal Error -
HondaCBR - 09.04.2012
Basically, I'm using dialog response and I want to store car name to use as reponse because I cant use case ==, as if you dont have car1 and have car2, car1 wont be