Am i doing this right? -
ScottCFR - 02.02.2010
Ok, so i'm about 90.00000000001% sure i'm doin this right. Plz help
i'm tryin to add text to when a player is at class selection
Код:
AddPlayerClass(1,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1); GameTextForPlayer(playerid,"~P~Dealer",5000,5);
But when i compile i get
Код:
(428) : error 017: undefined symbol "playerid"
Re: Am i doing this right? -
Devine - 02.02.2010
pawn Код:
AddPlayerClass(1,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1); GameTextForPlayer(i,"~P~Dealer",5000,5);
Re: Am i doing this right? -
GTAguillaume - 03.02.2010
Код:
OnPlayerRequestClass(playerid,classid)
{
if(classid == YOUR_CLAS_ID) GameTextForPlayer(playerid,"~P~Dealer",5000,5);
}
Quote:
so i'm about 90.00000000001% sure i'm doin this right.
|
Im 100% sure thet only this will work :b
Re: Am i doing this right? -
ScottCFR - 03.02.2010
Quote:
Originally Posted by GTAguillaume
Код:
OnPlayerRequestClass(playerid,classid)
{
if(classid == YOUR_CLAS_ID) GameTextForPlayer(playerid,"~P~Dealer",5000,5);
}
Quote:
so i'm about 90.00000000001% sure i'm doin this right.
|
Im 100% sure thet only this will work :b
|
I'm really confuzzled...... I get define errors
Quote:
Originally Posted by CPrescott
pawn Код:
AddPlayerClass(1,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1); GameTextForPlayer(i,"~P~Dealer",5000,5);
|
I get define error for "i"
Re: Am i doing this right? -
Devine - 03.02.2010
Quote:
Originally Posted by ScottCFR
Quote:
Originally Posted by GTAguillaume
Код:
OnPlayerRequestClass(playerid,classid)
{
if(classid == YOUR_CLAS_ID) GameTextForPlayer(playerid,"~P~Dealer",5000,5);
}
Quote:
so i'm about 90.00000000001% sure i'm doin this right.
|
Im 100% sure thet only this will work :b
|
I'm really confuzzled...... I get define errors
Quote:
Originally Posted by CPrescott
pawn Код:
AddPlayerClass(1,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1); GameTextForPlayer(i,"~P~Dealer",5000,5);
|
I get define error for "i"
|
You're adding that OnGameModeInit aren't you? You can't use either playerid or I, use GTAguillaume's code.
Re: Am i doing this right? -
ScottCFR - 03.02.2010
Quote:
You're adding that OnGameModeInit aren't you?
|
Yes, i was. But now the Character doesn't show it just shows text
Re: Am i doing this right? -
ScottCFR - 03.02.2010
Bump.
Re: Am i doing this right? -
sggassasin - 03.02.2010
try
EDIT:AddPlayerClass(1,1958.3783,1343.1572,15.3746, 269.1425,0,0,24,300,-1,-1); GameTextForPlayer(playerid,"~P~Dealer",5000,5);
i dident read it right change the pos of the class to the pos of ur camer that u use in public OnPlayerRequestClass(playerid, classid)