Am i doing this right?
#1

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"
Reply
#2

pawn Код:
AddPlayerClass(1,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1); GameTextForPlayer(i,"~P~Dealer",5000,5);

Reply
#3

Код:
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
Reply
#4

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"
Reply
#5

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.
Reply
#6

Quote:

You're adding that OnGameModeInit aren't you?

Yes, i was. But now the Character doesn't show it just shows text
Reply
#7

Bump.
Reply
#8

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)
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)