30.05.2010, 07:53
Yes, I am trying to create a new textdraw dialog for my server and I keep getting an error, please could you tell me how to fix this? I am not worried about the warning!!! I know what it is.
6 Errors.[/pawn]
pawn Код:
C:\Users\Blade\Desktop\HIDDEN-1\Files\gamemodes\HIDDEN.pwn(27295) : error 027: invalid character constant
C:\Users\Blade\Desktop\HIDDEN-1\Files\gamemodes\HIDDEN.pwn(27295) : error 027: invalid character constant
C:\Users\Blade\Desktop\HIDDEN-1\Files\gamemodes\HIDDEN.pwn(38838) : error 027: invalid character constant
C:\Users\Blade\Desktop\HIDDEN-1\Files\gamemodes\HIDDEN.pwn(38838) : error 027: invalid character constant
C:\Users\Blade\Desktop\HIDDEN-1\Files\gamemodes\HIDDEN.pwn(38995) : error 027: invalid character constant
C:\Users\Blade\Desktop\HIDDEN-1\Files\gamemodes\HIDDEN.pwn(38995) : error 027: invalid character constant
C:\Users\Blade\Desktop\HIDDEN-1\Files\gamemodes\HIDDEN.pwn(45820) : warning 203: symbol is never used: "PlayerPos"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
[pawn] if(strcmp(cmd, "/welcome", true) == 0)
{
if(IsPlayerConnected(playerid))
{
ShowWelcomeDialog(playerid,DWELCOME);
}
return 1;
}
pawn Код:
if (dialogid == DTUTASK)
{
if (response == 1) // Yes
{
ShowTutStepOneDialog(playerid,DTUTSTEP1);
}
else // No
{
PlayerInfo[playerid][pTut] = 1;
gNewbie[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
ShowWelcomeDialog(playerid,DWELCOME);
OnPlayerSave(playerid);
return 1;
}
return 1;
}
pawn Код:
if (dialogid == DTUTSTEP13)
{
if (response == 1) // Agree
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Rules/Terms Agreement Accepted! You may now play on our server.");
PlayerInfo[playerid][pTut] = 1;
gNewbie[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
ShowWelcomeDialog(playerid,DWELCOME);
OnPlayerSave(playerid);
}
else // Disagree
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must agree to our Rules/Terms Agreement before playing on our server.");
Kick(playerid);
return 1;
}
return 1;
}
6 Errors.[/pawn]