SA-MP Forums Archive
need help with my gamemode... - 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: need help with my gamemode... (/showthread.php?tid=303783)



need help with my gamemode... - niels44 - 15.12.2011

i need help with my gamemode NYD_Drifting3 its very weird but when i connect and i want to choose my class i am getting this screen and it isn't changing and i tried it on 2 IP's and on 2 computers so i hope someone can help me...


so pls guys help me!
niels


Re: need help with my gamemode... - vassilis - 15.12.2011

are you sure you loaded all plugins...are you sure you have all the scriptfiles to the scriptfiles folder that are neccesary for the gamemode also check some scripting fuctions which are inside your gamemode you have to watch it carefully check out OnPlayerUpdate callback to see if it has any problem ..hope i helped


Re: need help with my gamemode... - [ABK]Antonio - 15.12.2011

Are you setting their weather to a bad ID when they connect?


Re: need help with my gamemode... - niels44 - 15.12.2011

i dont set any weather and btw trying to see for the plugins...


Re: need help with my gamemode... - niels44 - 15.12.2011

this is my OnPlayerUpdate...
Код:
public OnPlayerUpdate(playerid)
{
	return 1;
}
nothing added there... i dont know if i have to XD if so pls make it for me good XD.
niels


Re: need help with my gamemode... - [MG]Dimi - 15.12.2011

It's not ablout that. Give us OnPlayerConnect. I can happen if you don't use float variable (tag mismatch). Ex. New x (not Float:x) and then SetPlayerPos(playerid,x...);


Re: need help with my gamemode... - vassilis - 15.12.2011

does the gamemode have any warnings?


Re: need help with my gamemode... - niels44 - 15.12.2011

gamemode doesn't has any warnings when i compile and here is the ONPlayerConnect:
Код:
public OnPlayerConnect(playerid)
{
    SetPlayerMapIcon(playerid, 1,  -2185.1511, 2412.7346, 5.1563, 9, 0 );
	ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Welcome to NYD's Drifting Server", "/-Server Rules-/ \n 1)Do Not Use Hacks Or You'll be Banned. \n 2)Report All Spotted Bugs. \n 3)Do NOT flame any other member.HTTP \n 4)Do not spam any command. \n 5)Flamming an admin is a bad idea. \n 6)Asking for admin will reduce your chance to be one. \n 7)Be sure to check out forums.\n 8)Enjoy the Server =)", "Accept", "Quit");
    _pVars[ playerid ][ Score ] = 0;
    INI_ParseFile( USER_PATH ( playerid ), "load_user_%s", .bExtra = true, .extra = playerid );
	SendClientMessage(playerid,COLOR_GREEN,"This GameMode has been created by [drifters]niels");
    SendClientMessage(playerid,COLOR_GREEN,"This Server uses the LUXAdmin system by Luxurious");
    SendClientMessage(playerid,COLOR_RED,"To get a car use /carmenu for a list of teleports use /teles and for a list of commands use /cmds");
    SendClientMessage(playerid,COLOR_RED,"everyone pls register again, i deleted all the accounts becuz there were many buggs.(greets niels)");
    SendClientMessage(playerid,0xFFFF00AA," Carmenu System by Yuri");
	return 1;
}



Re: need help with my gamemode... - niels44 - 15.12.2011

EDIT: oops posted 2 times lol XD


Re: need help with my gamemode... - [MG]Dimi - 15.12.2011

Show us Loaduser_