21.07.2009, 10:28
So, i'm making admin tele what also gives minigun to admin. This what i have for now
287 //------------------------------------//TW1-----------------------------------------
288 if(strcmp(cmdtext, "//tw1",true)==0){
289
290 if(IsAdmin == 1)
291
292 SetPlayerPos(playerid, 413,2543,30);
293 SetPlayerInterior(playerid,0);
294 if(IsAdmin == 1)
295 GivePlayerWeapon(playerid,38,1000);
296 SendClientMessage(playerid, 0xFFFF00AA, "***Shoot chitters with minigun.");
297 else
298
299 SendClientMessage(playerid, 0xFFFF00AA, "***You can't go there, and there's nothing to see anyway");
300
301 return 1;
302
303 }
And it worked before I putted that non admin text thing
else
SendClientMessage(playerid, 0xFFFF00AA, "***You can't go there, and there's nothing to see anyway");
here's all errors and warnings it say
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(293) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(294) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(296) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(297) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(297) : error 029: invalid expression, assumed zero
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(297 -- 299) : warning 215: expression has no effect
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(299) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(299) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
So, what i did wrong?
287 //------------------------------------//TW1-----------------------------------------
288 if(strcmp(cmdtext, "//tw1",true)==0){
289
290 if(IsAdmin == 1)
291
292 SetPlayerPos(playerid, 413,2543,30);
293 SetPlayerInterior(playerid,0);
294 if(IsAdmin == 1)
295 GivePlayerWeapon(playerid,38,1000);
296 SendClientMessage(playerid, 0xFFFF00AA, "***Shoot chitters with minigun.");
297 else
298
299 SendClientMessage(playerid, 0xFFFF00AA, "***You can't go there, and there's nothing to see anyway");
300
301 return 1;
302
303 }
And it worked before I putted that non admin text thing
else
SendClientMessage(playerid, 0xFFFF00AA, "***You can't go there, and there's nothing to see anyway");
here's all errors and warnings it say
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(293) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(294) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(296) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(297) : warning 217: loose indentation
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(297) : error 029: invalid expression, assumed zero
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(297 -- 299) : warning 215: expression has no effect
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(299) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Perttu\Documents\Downloads\samp02Xserver. win32\gamemodes\velka.pwn(299) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
So, what i did wrong?