#1

It is showing 3 errors

Код:
if (strcmp("/prikazy3", cmdtext, true, 10) == 0)
	{
		new string[300];
		strcat(string, "Moderбtor Level 3 - Prнkazy","Level 3:\n\n+Level 1 Prнkazy\n+Level 2 prнkazy\n"); //error line
		strcat(string, "/set (health/armour/cash/score/skin/wanted/name/weather/time/world/interior/ping/gravity\n/setallskin\n/armourall\n");
		strcat(string, "/setallwanted\n/setallweather\n/setalltime\n/setallworld\n/setallscore\n/setallcash\n/giveallweapon\n");
		strcat(string, "/clearallchat\n/healall\n/diseblechat\n/ubound\n/duel\n/akill\n/aka\n/caps\n/(un)freeze\n/kick\n/explode\n/(un)jail\n");
		strcat(string, "/force\n/eject\n/(s)removecash\n/car\n/carhealth\n/carcolour\n/destroycar\n/vget\n/givecar\/teleplayer\n"); //error line
		strcat(string, "/gethere\n/get\n/move\n/moveplayer\n/gps\n/lcam\n/setpass\n/lammo\n/countdown\n/aweaps\n/invisible\n/visible\n");
		strcat(string, "Word\n");
		ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX, "OK", string, "OK", "");
        return 1;
    }
    return 0;
}
error

Код:
C:\Users\kjn\Documents\Server\gamemodes\kjn.pwn(367) : error 035: argument type mismatch (argument 3)
C:\Users\kjn\Documents\Server\gamemodes\kjn.pwn(371) : error 027: invalid character constant
C:\Users\kjn\Documents\Server\gamemodes\kjn.pwn(371) : error 027: invalid character constant
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#2

who, not so fast...i found the problem...
Reply
#3

Try this
pawn Код:
if (strcmp("/prikazy3", cmdtext, true, 10) == 0)
    {
        new string[999];
        format(string, sizeof(string), "Moderбtor Level 3 - Prнkazy","Level 3:\n\n+Level 1 Prнkazy\n+Level 2 prнkazy\n"); //error line
        format(string, sizeof(string), "/set (health/armour/cash/score/skin/wanted/name/weather/time/world/interior/ping/gravity\n/setallskin\n/armourall\n");
        format(string, sizeof(string), "/setallwanted\n/setallweather\n/setalltime\n/setallworld\n/setallscore\n/setallcash\n/giveallweapon\n");
        format(string, sizeof(string), "/clearallchat\n/healall\n/diseblechat\n/ubound\n/duel\n/akill\n/aka\n/caps\n/(un)freeze\n/kick\n/explode\n/(un)jail\n");
        format(string, sizeof(string), "/gethere\n/get\n/move\n/moveplayer\n/gps\n/lcam\n/setpass\n/lammo\n/countdown\n/aweaps\n/invisible\n/visible\n");
        format(string, sizeof(string), "Word\n");
        ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"string",string,"OK","");
        }
    return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)