13.07.2014, 09:19
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME], country[MAX_COUNTRY_NAME], gmt;
new string[256];
GetPlayerName(playerid, name, sizeof(name));
country = GetPlayerCountryName(playerid);
gmt = GetPlayerGMT(playerid);
format(string, sizeof(string), "[JOIN] %s (%s, GMT %d:00)", name, country, gmt);
SendClientMessageToAll(COLOR_GREEN,string);
SendClientMessage(playerid, 0xFFFF00AA,"Please use /register if you dont have an account!");
SendClientMessage(playerid, COLOR_RED,"Use /v to spawn a vehicle, if you need help use /help!");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Welcome to SDC", "Welcome to our server!\nDown here are some commands that can be usefull:\n/v to spawn a car\n/admins to see a list of online admins\n/cmds will show a list of commands\nPress 2 for a car/bike hop\nPress alt to get a speed boost\nPress h to flip your car\nDONT DM outside DM zones, dont hack and have fun!!", "Ok", "");
return 1;
}
This is error:-
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : error 017: undefined symbol "MAX_COUNTRY_NAME"
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : error 029: invalid expression, assumed zero
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : error 017: undefined symbol "gmt"
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
is their is anything that i have to define??
{
new name[MAX_PLAYER_NAME], country[MAX_COUNTRY_NAME], gmt;
new string[256];
GetPlayerName(playerid, name, sizeof(name));
country = GetPlayerCountryName(playerid);
gmt = GetPlayerGMT(playerid);
format(string, sizeof(string), "[JOIN] %s (%s, GMT %d:00)", name, country, gmt);
SendClientMessageToAll(COLOR_GREEN,string);
SendClientMessage(playerid, 0xFFFF00AA,"Please use /register if you dont have an account!");
SendClientMessage(playerid, COLOR_RED,"Use /v to spawn a vehicle, if you need help use /help!");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Welcome to SDC", "Welcome to our server!\nDown here are some commands that can be usefull:\n/v to spawn a car\n/admins to see a list of online admins\n/cmds will show a list of commands\nPress 2 for a car/bike hop\nPress alt to get a speed boost\nPress h to flip your car\nDONT DM outside DM zones, dont hack and have fun!!", "Ok", "");
return 1;
}
This is error:-
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : error 017: undefined symbol "MAX_COUNTRY_NAME"
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : error 029: invalid expression, assumed zero
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : error 017: undefined symbol "gmt"
C:\Users\vishal\Desktop\New folder (2\GM\gs.pwn(1020) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
is their is anything that i have to define??