PDA

View Full Version : :(help me


XaibBaba
16/05/2015, 03:42 PM
public OnPlayerClickTextDraw(playerid, Text:textid)
{
if(textid == Wheels[3])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[4])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[5])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[6])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[7])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[8])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[9])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[10])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[11])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[12])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[13])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[14])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[15])
{
SetPlayerSkin(playerid, 0);
}
else if(textid == Wheels[17])
{
SendClientMessage(playerid, 0xFFFFFFFF, "You have chosen to Close the Wheels Menu.");
}
return 1;
}
Error
E:\aaa\Marx Gaming\gamemodes\new.pwn(7264) : error 025: function heading differs from prototype

[FMJ]PowerSurge
16/05/2015, 03:52 PM
Change the first line to:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
and change all 'textid' to 'clickedid', or add
new Text:textid = clickedid;

XaibBaba
16/05/2015, 04:23 PM
when i did that so this warning is comming and this line isn't in script
E:\aaa\Marx Gaming\gamemodes\new.pwn(80312) : warning 203: symbol is never used: "textid"

StreetRP
16/05/2015, 04:42 PM
No do like this :

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Wheels[3])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[4])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[5])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[6])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[7])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[8])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[9])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[10])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[11])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[12])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[13])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[14])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[15])
{
SetPlayerSkin(playerid, 0);
}
else if(clickedid == Wheels[17])
{
SendClientMessage(playerid, 0xFFFFFFFF, "You have chosen to Close the Wheels Menu.");
}
return 1;
}

dominik523
16/05/2015, 04:48 PM
Please search next time. If you have problems with your callbacks, try to see the original callback on the wiki:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{

return 1;
}

Nirzor
16/05/2015, 04:52 PM
Always use the original callback. Thats a lifetime tip I can give you , while you script game-modes.

XaibBaba
16/05/2015, 04:52 PM
it didn't work guys same warning is comming