C:\\Documents and Settings\\user\\Asztal\\EarthRPG\\gamemodes\\earthrpg.pwn(21431) : warning 215: expression has no effect
C:\\Documents and Settings\\user\\Asztal\\EarthRPG\\gamemodes\\earthrpg.pwn(21435) : warning 215: expression has no effect
C:\\Documents and Settings\\user\\Asztal\\EarthRPG\\gamemodes\\earthrpg.pwn(21444) : warning 215: expression has no effect
C:\\Documents and Settings\\user\\Asztal\\EarthRPG\\gamemodes\\earthrpg.pwn(21448) : warning 215: expression has no effect
AttachObjectCorrectly(playerid, 3026);
}
else if(strcmp(x_nr,\"briefcase\",true) == 0)
{
AttachObjectCorrectly(playerid, 1210);
}
else if(strcmp(x_nr,\"nothing\",true) == 0)
{
StopPlayerHoldingObject(playerid);
if(IsACop(playerid) && PlayerInfo[playerid][pDuty] == 1)
{
if(Tazer[playerid] == 1)
{
AttachWeaponCorrectly(playerid, 24);
}
else
{
AttachWeaponCorrectly(playerid, 23);
}
}
}
else return SendClientMessage(playerid, COLOR_GREY,\"* Unknown item!\");
}
return 1;
}
Én nemlátok benne hibát
Nagyn megköszönném ha segitetek
És még: Ezt tettem bele a módba:
if(strcmp(cmd, \"/use\", true) == 0) // by Cuervo
{
if(IsPlayerConnected(playerid))
{
new x_nr[24];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_GREY, \"USAGE: /use [backpack, briefcase, nothing]\");
SendClientMessage(playerid, COLOR_GREY, \"TIP: \\\"nothing\\\" will remove the item from your body!\");
return 1;
}
if(strcmp(x_nr,\"backpack\",true) == 0)
{
AttachObjectCorrectly(playerid, 3026);
}
else if(strcmp(x_nr,\"briefcase\",true) == 0)
{
AttachObjectCorrectly(playerid, 1210);
}
else if(strcmp(x_nr,\"nothing\",true) == 0)
{
StopPlayerHoldingObject(playerid);
if(IsACop(playerid) && PlayerInfo[playerid][pDuty] == 1)
{
if(Tazer[playerid] == 1)
{
AttachWeaponCorrectly(playerid, 24);
}
else
{
AttachWeaponCorrectly(playerid, 23);
}
}
}
else return SendClientMessage(playerid, COLOR_GREY,\"* Unknown item!\");
}
return 1;
}
És ebbe mi a hiba hogy nemadja meg azt ami megvan adva object?