SA-MP Forums Archive
Help. - 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: Help. (/showthread.php?tid=578115)



Help. - DeathFire - 16.06.2015

Код:
CMD:disland(playerid, params[])
	{
	if(dm[playerid]==1)
	{
		return SendClientMessage(playerid,red, "[ ERROR: You are in deathmatch, type /Leavedm to use this command. ]");
 	}

	if(IsPlayerVIPLevel(playerid,2))
	{
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,3398.230224,2339.5776362.531250,262.003540);
	SendClientMessage(playerid, -1,"{FF00FB}Welcome to your island, Donor! Have Fun!");
	SendClientMessage(playerid, -1,"{00FF00}[INFO] {C9C9C9}If you want to leave the island, get on the water and type /dboat.");
	GameTextForPlayer(playerid, "~r~Welcome to the DONOR island",5000,3);
    }else SendClientMessge(playerid,red,"ERROR: You must be a Donator of Level 2 to use this command.");
    return 1;
}
ERROR Messages:

Код:
C:\Users\Admin\Desktop\COD7ver3.0\gamemodes\COD7ver3.0.pwn(8666) : error 001: expected token: ",", but found "."
C:\Users\Admin\Desktop\COD7ver3.0\gamemodes\COD7ver3.0.pwn(8666) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD7ver3.0\gamemodes\COD7ver3.0.pwn(8666) : warning 215: expression has no effect
C:\Users\Admin\Desktop\COD7ver3.0\gamemodes\COD7ver3.0.pwn(8666) : warning 215: expression has no effect
C:\Users\Admin\Desktop\COD7ver3.0\gamemodes\COD7ver3.0.pwn(8666) : error 001: expected token: ";", but found ")"
C:\Users\Admin\Desktop\COD7ver3.0\gamemodes\COD7ver3.0.pwn(8666) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
I think I'm missing something, but I don't know what.


Re: Help. - Lajko1 - 16.06.2015

Make it easier and show us error line pls ^^ you're missing , or ; etc..


Re: Help. - DeathFire - 16.06.2015

Quote:
Originally Posted by Lajko1
Посмотреть сообщение
Make it easier and show us error line pls ^^ you're missing , or ; etc..
Here.
Код:
SetPlayerPos(playerid,3398.230224,2339.5776362.531250,262.003540);



Re: Help. - Lajko1 - 16.06.2015

2339.5776362.531250 modify those coordinates you have 2x "."
SetPlayerPos want coordinates X,Y,Z from you that means 3x "," and 3x "." you have 2x "," and 4x "." so check this again make sure you put correct coordinates.

Код:
SetPlayerPos(playerid,3398.230224,2339.5776362.531250,262.003540);
- you need to change "." to "," check coordinates again

You might want those coordinates?
Код:
SetPlayerPos(playerid,3398.230224,2339.5776362,262.003540);
Or ?

Код:
SetPlayerPos(playerid,3398.230224,2339.531250,262.003540);
Hope this helped you.


Re: Help. - DeathFire - 16.06.2015

Fixed. Thanks for the help though.


Re: Help. - Lajko1 - 16.06.2015

You're more than welcome