Jump to content
  • 0

Problema stergere Nume_Prenume


RenDy

Question

C:\Users\Daniel\Desktop\LSLRP\LSLRP\LSLRP\gamemodes\larp.pwn(29159) : error 029: invalid expression, assumed zero

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

plz help am sters chestia aia cu Nume_Prenume si mia dat eraorea asat plz zicetimi ce trb sa fac am asa

//----------------------------------[Name kick]------------------------------------------------

    if(strcmp(cmd, "/name", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /name [playerid/PartOfName]");

return 1;

}

giveplayerid = ReturnUser(tmp);

if (PlayerInfo[playerid][pAdmin] >= 1)

{

if(IsPlayerConnected(giveplayerid))

{

if(giveplayerid != INVALID_PLAYER_ID)

 

  }

}

}

else

{

format(string, sizeof(string), "  %d is not an active player.", giveplayerid);

SendClientMessage(playerid, COLOR_GRAD1, string);

}

}

return 1;

}

if(strcmp(cmd, "/changename", true) == 0)

{

    GetPlayerName(playerid, sendername, sizeof(sendername));

new tmpp[256];

tmpp = strtok(cmdtext, idx);

if(!strlen(tmpp))

{

SendClientMessage(playerid, COLOR_DBLUE, "Correct SYNTAX: /changename [playerid] [new nick]");

return 1;

}

giveplayerid = strval(tmpp);

tmp = strtok(cmdtext, idx);

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

if(IsPlayerConnected(playerid))

{

    if(PlayerInfo[playerid][pAdmin] >= 1337)

    {

        if(IsPlayerConnected(giveplayerid))

        {

SetPlayerName(giveplayerid, tmp);

format(string, sizeof(string), "AdmCMD: %s(%i) has changed Your name to %s", sendername, playerid, tmp);

SendClientMessage(giveplayerid, COLOR_DBLUE, string);

format(string, sizeof(string), "AdmCMD: You have changed ID %i's name to %s", giveplayerid, tmp);

SendClientMessage(playerid, COLOR_DBLUE, string);

format(string, 256, "AdmWarning: %s has changed %s's his name to %s.", sendername,giveplayer, tmp);

ABroadCast(COLOR_YELLOW,string,1);

}

else

{

    format(string, sizeof(string), "%d is not an active player.", giveplayerid);

SendClientMessage(playerid, COLOR_RED, string);

}

}

else

{

    SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");

}

}

else

{

    SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");

}

  return 1;

}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.