if (strcmp(cmd, "/createcustomtext", true) == 0)
{
new tmp[150];
new string[512];
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /createcustomtext [text]");
return 1;
}
strmid(tmp, cmdtext, strfind(cmdtext, " ") + 1, strlen(cmdtext));
for (new i = 0; i < MAX_CUSTOM_TEXTS; i ++)
{
if (!CustomTextEnum[i][ctExists])
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
x += (4.0 * floatsin(-a, degrees));
y += (4.0 * floatcos(a, degrees));
z += 5.5;
CustomTextEnum[i][ctExists] = true;
format(CustomTextEnum[i][ctString], 255, tmp);
CustomTextEnum[i][ctColor] = 0xFF000000;
format(CustomTextEnum[i][ctFont], 32, "Arial");
CustomTextEnum[i][ctX] = x;
CustomTextEnum[i][ctY] = y;
CustomTextEnum[i][ctZ] = z;
CustomTextEnum[i][ctRX] = 0.0;
CustomTextEnum[i][ctRY] = 0.0;
CustomTextEnum[i][ctRZ] = a - 180;
CustomTextEnum[i][ctObjectID] = CreateDynamicObject(2885, x, y, z, 0.0, 0.0, a);
CustomTextEnum[i][ctSize] = 24;
CustomTextEnum[i][ctModel] = 2885;
CustomTextEnum[i][ctBackColor] = 0xFFFFFFFF;
SetDynamicObjectMaterialText(CustomTextEnum[i][ctObjectID], 0, Wrap(tmp), _, _, _, _, 0xFF000000, 0xFFFFFFFF, 1);
format(string, sizeof(string), "You have created a custom text (ID: %d).", i);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "INSERT INTO `CustomTexts` (`ctID`) VALUES('%d')", i);
db_query(CustomTextDB, string);
SaveCustomText(i);
return 1;
}
}
SendClientMessage(playerid, 0xAFAFAFFF, "You cannot spawn any more custom texts.");
return 1;
}
else SendClientMessage(playerid, 0xAFAFAFFF, "You are not authorized to use this command.");
return 1;
}
#define PlayerPokerUI
new PlayerTextDraw: PlayerPokerUI[MAX_PLAYERS];
This is why you shouldn't use leaked gamemodes(this is obviously the ngrp leak).
|
Do you not understand? says it clearly has not defined "PlayerPokerUI". You have to define it, could give us more information about what it is and could help him telling how to define it.
|
This is why you shouldn't use leaked gamemodes(this is obviously the ngrp leak).
|