if(strcmp(cmdtext, "/naudoti", true)==0) { if(playerDB[playerid][narkotikai]<1) { SendClientMessage(playerid, RED, "* Neturite narkotiku"); return 1; } ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1); playerDB[playerid][narkotikai]-=1; SendClientMessage(playerid,BLUE,"* Naudojate narkotikus"); SetPlayerHealth(playerid,100); new Float:drunk; GetPlayerDrunkLevel(playerid,drunk); if(drunk<48000) SetPlayerDrunkLevel(playerid,drunk+2000); return 1; }
C:\Users\Labas\Desktop\MPGC\gamemodes\MPG.pwn(3805) : warning 202: number of arguments does not match definition C:\Users\Labas\Desktop\MPGC\gamemodes\MPG.pwn(3806) : warning 213: tag mismatch
if(strcmp(cmdtext, "/naudoti", true)==0)
{
if(playerDB[playerid][narkotikai]<1) return SendClientMessage(playerid, RED, "* Neturite narkotiku");
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
playerDB[playerid][narkotikai]-=1;
SendClientMessage(playerid,BLUE,"* Naudojate narkotikus");
SetPlayerHealth(playerid,100);
new drunk = GetPlayerDrunkLevel(playerid);
if(drunk < 48000) SetPlayerDrunkLevel(playerid,drunk+2000);
return 1;
}
1) You didn't get errors, you got warnings.
2) Does it work ingame? 3) What are lines 3805 and 3806? |