PDA

View Full Version : error 017: undefined symbol "PlayerPokerUI"


Zyova
24/01/2015, 12:32 AM
./includes/textdraws.pwn(4) :error 017: undefined symbol "PlayerPokerUI"

Help!

Zume
24/01/2015, 12:36 AM
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.

Abagail
24/01/2015, 12:38 AM
This is why you shouldn't use leaked gamemodes(this is obviously the ngrp leak).

Zyova
24/01/2015, 12:46 AM
Give me example,and i confuse,what i must write in #dfine or at enum or new blah[];...so this error not came before i add this 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;
}

Zyova
24/01/2015, 12:56 AM
Buddy,What should i do ?

Zyova
24/01/2015, 01:18 AM
I write this #define PlayerPokerUI
then i've got this http://forum.sa-mp.com/showthread.php?t=559556

Abagail
24/01/2015, 01:23 AM
This should help,


new PlayerTextDraw: PlayerPokerUI[MAX_PLAYERS];

Zyova
24/01/2015, 01:24 AM
Thax Baby!

Zyova
24/01/2015, 01:38 AM
This is why you shouldn't use leaked gamemodes(this is obviously the ngrp leak).

I don't know,i download Much GameMode and I choose that,for learn SAMP Scrift.

Zyova
24/01/2015, 01:46 AM
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.

You can call me Noob :D

fonia5
24/01/2015, 02:48 AM
This is why you shouldn't use leaked gamemodes(this is obviously the ngrp leak).

How do you know if it's NGRP leak? however, he is allowed to use it because when i reported a server to them they didn't even care about it.