SA-MP Forums Archive
Carid won't work... - 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: Carid won't work... (/showthread.php?tid=432444)



Carid won't work... - RandomDude - 22.04.2013

pawn Код:
GetPlayerName(playerid, playername, sizeof(playername));
                    new string[ 128 ];
                    format(string, sizeof(string), "INFO: %s[%d] Has joined RandomStunt in a %d.", playername,carid);
                    SendClientMessageToAll(COLOR_RED, string);
It won't show what car the player teleported in... -_-

btw yes I do have
pawn Код:
new carid;



Re: Carid won't work... - RaZzZzoR - 22.04.2013

GetVehicleModel( vehicleid )
Код:
GetPlayerName(playerid, playername, sizeof(playername));
                    new string[ 128 ];
                    format(string, sizeof(string), "INFO: %s[%d] Has joined RandomStunt in a %d.", playername, GetVehicleModel( vehicleid ));
                    SendClientMessageToAll(COLOR_RED, string);



Re: Carid won't work... - RandomDude - 22.04.2013

Quote:
Originally Posted by RaZzZzoR
Посмотреть сообщение
GetVehicleModel( vehicleid )
Код:
GetPlayerName(playerid, playername, sizeof(playername));
                    new string[ 128 ];
                    format(string, sizeof(string), "INFO: %s[%d] Has joined RandomStunt in a %d.", playername, GetVehicleModel( vehicleid ));
                    SendClientMessageToAll(COLOR_RED, string);
Thank You. +1