#1

Код:
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.
Reply
#2

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

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);
Reply
#4

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.
Reply
#5

Fixed. Thanks for the help though.
Reply
#6

You're more than welcome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)