Server\filterscripts\ILC.pwn(87) : error 035: argument type mismatch (argument 2)
public OnPlayerDoneCreating(playerid)
{
IsPickingPos[playerid] = 0;
IsCreating[playerid] = 0;
new text[256], color[50];
GetPVarString(playerid, "String", text, sizeof(text));
GetPVarString(playerid, "Color", color, sizeof(color));
//Line 87 (Error line)
Create3DTextLabel(text, color, GetPVarFloat(playerid, "PosX"), GetPVarFloat(playerid, "PosY"), GetPVarFloat(playerid, "PosZ"), 40, 0, 0); //(Error line)
ResetLabelPVars(playerid);
return 1;
}
if(HexToInt(inputtext))
{
SetPVarInt(playerid, "Color", inputtext);
CallLocalFunction("OnPlayerDoneCreating", "i", playerid);
}
Server\filterscripts\ILC.pwn(145) : error 035: argument type mismatch (argument 3)
Note: Use color embedding for multiple colors in the text. |
Create3DTextLabel(text, HexToInt(color), GetPVarFloat(playerid, "PosX"), GetPVarFloat(playerid, "PosY"), GetPVarFloat(playerid, "PosZ"), 40, 0, 0);
public OnPlayerDoneCreating(playerid)
{
IsPickingPos[playerid] = 0;
IsCreating[playerid] = 0;
new text[256], color[50];
GetPVarString(playerid, "String", text, sizeof(text));
GetPVarString(playerid, "Color", color, sizeof(color));
Create3DTextLabel(text, HexToInt(color), GetPVarFloat(playerid, "PosX"), GetPVarFloat(playerid, "PosY"), GetPVarFloat(playerid, "PosZ"), 40, 0, 0);
ResetLabelPVars(playerid);
return 1;
}
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase