AddPlayerClass Help.
#1

Hello,

i have these AddPlayerClass :-
Код:
AddPlayerClass(61,1319.8157,1263.2068,10.8203,359.8732,0,0,0,0,0,0); // LVA
    AddPlayerClass(61,-1261.4973,25.3418,14.1484,135.6924,0,0,0,0,0,0); // SFA
    AddPlayerClass(61,2002.2710,-2441.7300,13.5469,88.1044,0,0,0,0,0,0); // LSA
    AddPlayerClass(59,1292.6865,1579.3773,50.2969,267.5196,0,0,0,0,0,0); // LVAATC
    AddPlayerClass(59,-1276.8569,53.7616,73.9654,334.9521,0,0,0,0,0,0); // SFA AtC
    AddPlayerClass(59,1439.2864,-2423.1643,55.7094,261.1877,0,0,0,0,0,0); // LSA ATC
    AddPlayerClass(287,345.6940,2021.0737,22.6406,98.0141,0,0,0,0,0,0); // Area 51 spawn point
    AddPlayerClass(287,-1348.0900,494.9265,18.2278,360.0000,0,0,0,0,0,0); //
and i took if(classid == 0) from here :- https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
I Added it in my command :-
Код:
if(classid == 0)
    {
	   SetPlayerSkin(playerid, 61);
	   SetPlayerColor(playerid, COLOR_LIGHTBLUE);
       ShowPlayerDialog(playerid,pilot,DIALOG_STYLE_LIST,"Pilot - Spawn Menu","Las Venturas Airport\nSan Fierro Airport\nLos Santos Airport","Spawn","");
    }
it gives me warning :-
Код:
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(466) : error 017: undefined symbol "classid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Please see to it.
Reply
#2

Make sure its under public OnPlayerRequestClass,
Reply
#3

You need to put that code in OnPlayerRequestClass

and don't use Montana's code.

Edit : Montana.... (facepalm) don't steal my answer ._.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)