SA-MP Forums Archive
Dialog error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog error (/showthread.php?tid=610700)



Dialog error - Owen007 - 27.06.2016

I am getting a dialog error i dont know why:

Код:
C:\Users\Acer\Desktop\Zombies VS Humans V1.1\gamemodes\zombie2.pwn(5527) : error 027: invalid character constant
C:\Users\Acer\Desktop\Zombies VS Humans V1.1\gamemodes\zombie2.pwn(5527) : error 027: invalid character constant
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Код:
    if(strcmp("/buyweap",cmdtext,true,10)==0) {
        if(gTeam[playerid] == TEAM_HUMAN) {
            ShowPlayerDialog(playerid,04041,DIALOG_STYLE_TABLIST_HEADERS,"Weapons Shop","Weapon\tPrice\tAmmo\n\SawnOffs\t$30000\t500\nDesert Eagle\t$6000\t500\nM4-Carbine\t$20000\t500\nMP5\t$7000\t500\nUzi\t$6500\t500\nKatana\t$8000\tN/A\nTec-9\t$4000\t500","Buy","Cancel");
        }

        if(gTeam[playerid] == TEAM_ZOMBIE) {
            SendClientMessage(playerid,ORANGE,"Weapons are made for Survivours..");
        }

        return 1;
	}

	return SendClientMessage(playerid,red, "Command does not exsist in the server use /help and /cmds");
}



Re: Dialog error - zPain - 27.06.2016

The problem is right before the word "SawnOffs".

Quote:

...n\SawnOffs\t...




Re: Dialog error - Owen007 - 27.06.2016

ty man lol i didnt saw that ty v much