SA-MP Forums Archive
Help with saving a text - 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 with saving a text (/showthread.php?tid=173368)



Help with saving a text - Sascha - 02.09.2010

Hi...
I want to add register numbers of police vehicles... I used:
Код:
new rnumber[MAX_VEHICLES][number[10]];
but as you can imagine it doesn't work...
I used:
Код:
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == polcar1){
new string[10];
format(string, sizeof(string), "GO-1");
rnumber[vehicle][tail[10]] = string);
}
return 1;
}
and I made it sent it when you enter the vehicle...

however... it doesn't work

How to save the number in the rnumber...?


Re: Help with saving a text - [HiC]TheKiller - 02.09.2010

It should be
pawn Код:
new rnumber[MAX_VEHICLES][number][10];