22.07.2010, 09:58
You have 1 extra closing brace in OnPlayerText. The garage[x] etc. were just examples. I'm guessing you're using an array for the garage system, like GarageInfo[garageid][PosX],GarageInfo[garageid][Owner] etc. When loading the garages, that's where you should use the Create3DTextLabel.
Here's an example, I hope you'll understand what I mean by it:
Here's the fix for OnPlayerChat:
Would be great if you could show me the way you load the garages.
Here's an example, I hope you'll understand what I mean by it:
pawn Код:
stock LoadGarages()
{
/*
This part loads the imaginable garages
*/
// Now that we have our garages loaded, lets place the 3DTextLabel at them, to show the owner
new string[24];
for(new i = 0; i < sizeof(GarageInfo); i++)
{
format(string,sizeof(string),"%s",GarageInfo[i][Owner]);
Create3DTextLabel(string,0x008080FF,GarageInfo[i][PosX],GarageInfo[i][PosY],GarageInfo[i][PosZ],40.0,0);
}
}
pawn Код:
public OnPlayerText(playerid, text[])
{
if(AccountInfo[playerid][Mute] == 1)
return SendClientMessage(playerid, RED, "You are muted! You cannot talk.");
return 1;
}
Would be great if you could show me the way you load the garages.