C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5882) : warning 225: unreachable code C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5893) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5894) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5895) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5896) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5897) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SANFIERROTRCNR.pwn(5898) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
new cmd[256]; new idx; cmd = strtok(cmdtext, idx); if (strcmp(cmdtext, "/tazerenk", true) ==0) { new tmp[256]; cmd = strtok(cmdtext, idx); if (!strlen(tmp)) { SendClientMessage(playerid, 0x00E800FF, "Usage: /lasercol [color]"); return 1; } if (!strcmp(tmp, "red", true)) SetPlayerAttachedObject(playerid, "1", 18643); else if (!strcmp(tmp, "blue", true)) SetPlayerAttachedObject(playerid, "1", 19080); else if (!strcmp(tmp, "pink", true)) SetPlayerAttachedObject(playerid, "1", 19081); else if (!strcmp(tmp, "orange", true)) SetPlayerAttachedObject(playerid, "1", 19082); else if (!strcmp(tmp, "green", true)) SetPlayerAttachedObject(playerid, "1", 19083); else if (!strcmp(tmp, "yellow", true)) SetPlayerAttachedObject(playerid, "1", 19084); else SendClientMessage(playerid, 0x00E800FF, "Colour not available!"); return 1; } return 0; } } return 1; }
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmdtext, "/tazerenk", true) ==0)
{
new tmp[256];
cmd = strtok(cmdtext, idx);
if (!strlen(tmp))
{
SendClientMessage(playerid, 0x00E800FF, "Usage: /lasercol [color]");
return 1;
}
if (!strcmp(tmp, "red", true)) SetPlayerAttachedObject(playerid, "1", 18643);
else if (!strcmp(tmp, "blue", true)) SetPlayerAttachedObject(playerid, "1", 19080);
else if (!strcmp(tmp, "pink", true)) SetPlayerAttachedObject(playerid, "1", 19081);
else if (!strcmp(tmp, "orange", true)) SetPlayerAttachedObject(playerid, "1", 19082);
else if (!strcmp(tmp, "green", true)) SetPlayerAttachedObject(playerid, "1", 19083);
else if (!strcmp(tmp, "yellow", true)) SetPlayerAttachedObject(playerid, "1", 19084);
else SendClientMessage(playerid, 0x00E800FF, "Colour not available!");
return 1;
}
if (!strcmp(tmp, "red", true)) return SetPlayerAttachedObject(playerid, "1", 18643);
else if (!strcmp(tmp, "blue", true)) return SetPlayerAttachedObject(playerid, "1", 19080);
else if (!strcmp(tmp, "pink", true)) return SetPlayerAttachedObject(playerid, "1", 19081);
else if (!strcmp(tmp, "orange", true)) return SetPlayerAttachedObject(playerid, "1", 19082);
else if (!strcmp(tmp, "green", true)) return SetPlayerAttachedObject(playerid, "1", 19083);
else if (!strcmp(tmp, "yellow", true)) return SetPlayerAttachedObject(playerid, "1", 19084);
else SendClientMessage(playerid, 0x00E800FF, "Colour not available!");
}
return 0;
}
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
Do some research. That also means the two posts above. Rep begging with useless answers, seriously ... |
@Vince: Mate, don't hate on others.
I'm not begging for rep, its just that I need a certain amount of rep to post in a certain thread. Also, people these days sometimes don't even say "thank you" let alone +rep. Have a nice day! |
@Vince: Mate, don't hate on others. My reply is useless? Did you even notice he doesn't have an opening bracket at the beginning?
And this: PHP код:
Have a nice day! |
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ, materialcolor1, materialcolor2)
surely is not okay. I at least corrected those in my post. I'm not begging for rep, its just that I need a certain amount of rep to post in a certain thread. Also, people these days sometimes don't even say "thank you" let alone +rep.
Have a nice day! |
@Vince: Mate, don't hate on others. My reply is useless? Did you even notice he doesn't have an opening bracket at the beginning?
|