Unknown Server Command [rep ++]
#1

Hello,

Whats the problem in this script i dont understand ?? When i type my command im getting this error, whats wrong here, please someone tell me, thank you

Код:
	if(strcmp(cmdtext, "/prifatipocetnik", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
		    if(!PlayerInfo[playerid][pGameMaster] >= 1)
		    {
	     	    SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne ste GameMaster!");
	     	    return 1;
			}
			new string[128];
			new giveplayerid = ReturnUser(tmp);
			new Float:x, Float:y, Float:z;
			GetPlayerPos(playerid, x,y,z);
			if(nTime[giveplayerid] == 1)
			{
				format(string, 256, "ADMIN TEAM; Jas %s se teleportirav do igracot %s so cel da mu pomognam bidejki pobara nasa pomos (/pocetnik)",sendername);
				ABroadCast(COLOR_LIGHTGREEN,string,1);
				SendClientMessage(playerid, COLOR_WHITE, "{DE072E}[INFO]:{7085DB} Uspesno se teleportiravte do igracot na koj sto mu e potrebna pomos !");
				SendClientMessage(playerid, COLOR_WHITE, "{DE072E}[INFO]:{7085DB} Dobivte pocetnik +1, so 20 pocetnici dobivate Reputacija UP");
				SetPlayerPos(playerid, x,y,z);
				nTime[giveplayerid] = 0;
				format(string, sizeof(string), "{5ABA08}(( %s [ID: %d]: Povelete kako bi mozel da vi pomognam ? ))", sendername, playerid);
				ProxDetector(20.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
				printf("%s", string);
				PlayerInfo[playerid][pPocetnici] ++;
				if(PlayerInfo[playerid][pReputacija] >= 1 || PlayerInfo[playerid][pReputacija] == 5 && PlayerInfo[playerid][pPocetnici] == 50)
				{
				    SendClientMessage(playerid, COLOR_WHITE, "{DE072E}[INFO]:{7085DB}Ova bese vasiot 50-ti Pocetnik, dobivte Reputacija +1, Cestitame !");
				    return 1;
				}
				if(PlayerInfo[playerid][pReputacija] >= 5 || PlayerInfo[playerid][pReputacija] == MAX_REP && PlayerInfo[playerid][pPocetnici] == 150)
				{
				    SendClientMessage(playerid, COLOR_WHITE, "{DE072E}[INFO]:{7085DB}Ova bese vasiot 150-ti Pocetnik, dobivte Reputacija +1, Cestitame !");
				    return 1;
				}
				PlayerInfo[playerid][pReputacija] ++;
   				PlayerInfo[playerid][pPocetnici] == 0;
	    		if(PlayerInfo[playerid][pReputacija] == MAX_REP)
			   	{
  	    			SendClientMessage(playerid, COLOR_WHITE, "{DE072E}[INFO]:{7085DB}Vasata reputacija go dostigna maksimumot %d/10, ve molime izvestete Head Admin !", PlayerInfo[playerid][pReputacija]);
					return 1;
				}
			}
		}
		return 1;
	}
Reply
#2

pawn Код:
new giveplayerid = ReturnUser(tmp);
tmp is empty and ReturnUser returns INVALID_PLAYER_ID (65535)
Reply
#3

So whats the solution?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)