SA-MP Forums Archive
Can you fix this code ? - 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: Can you fix this code ? (/showthread.php?tid=512904)



Can you fix this code ? - GuyYahood1 - 13.05.2014

Hey,

I try to do it:
PHP код:
format(string,256,"{FFFFFF}Call Car 1: %s",XPlayer[playerid][OwnedCar] == VInfo[XPlayer[playerid][CarID]][VName] : ("None")); 
and my Pawn Scripting crashes...
I know that's because "VInfo[XPlayer[playerid][CarID]]" , this is on format:
PHP код:
dfile_WriteString("Name",VInfo[i][VName]);
format(VInfo[i][VName],100,dfile_ReadString("Name")); 
but it's only in this code, I can't found answer, can you help me please ?