Vortex RP 1 - Problem
#1

Hi. I started scripting over it and I decided to make this.

I scripted this:
Код:
command(world_NonRP, playerid, params[])
{
    {
       SetPlayerVirtualWorld(playerid, playerid+2);
       SendClientMessage(playerid, WHITE, "You have been moved to the Non-RP world!");
       SendClientMessage(playerid, ADMINORANGE, "If you was just in the middle of RP, you're fucked!");
    }
	return 1;
}

command(world_RP, playerid, params[])
{
    {
       SetPlayerVirtualWorld(playerid, playerid+0);
       SendClientMessage(playerid, WHITE, "You have been moved to the RP world!");
    }
    return 1;
}
And I for some reason got an error on line 95.
Код:
main()
{
}
Код:
E:\Users\Ollie\Documents\GTABACKUP\GTA Mods\#LSL\Run\gamemodes\LosSantosLifeRoleplay.pwn(95) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Halp?
Reply
#2

pawn Код:
command(world_NonRP, playerid, params[])
{
   
       SetPlayerVirtualWorld(playerid, playerid+2);
       SendClientMessage(playerid, WHITE, "You have been moved to the Non-RP world!");
       SendClientMessage(playerid, ADMINORANGE, "If you was just in the middle of RP, you're fucked!");
   
    return 1;
}

command(world_RP, playerid, params[])
{
   
       SetPlayerVirtualWorld(playerid, playerid+0);
       SendClientMessage(playerid, WHITE, "You have been moved to the RP world!");
 
    return 1;
}
By the way:

WRONG SECTION!
Reply
#3

Quote:
Originally Posted by Schurman
Посмотреть сообщение
pawn Код:
command(world_NonRP, playerid, params[])
{
   
       SetPlayerVirtualWorld(playerid, playerid+2);
       SendClientMessage(playerid, WHITE, "You have been moved to the Non-RP world!");
       SendClientMessage(playerid, ADMINORANGE, "If you was just in the middle of RP, you're fucked!");
   
    return 1;
}

command(world_RP, playerid, params[])
{
   
       SetPlayerVirtualWorld(playerid, playerid+0);
       SendClientMessage(playerid, WHITE, "You have been moved to the RP world!");
 
    return 1;
}
By the way:

WRONG SECTION!
Even worse.
Код:
E:\Users\Ollie\Documents\GTABACKUP\GTA Mods\#LSL\Run\gamemodes\LosSantosLifeRoleplay.pwn(95) : error 001: expected token: ";", but found "-identifier-"
E:\Users\Ollie\Documents\GTABACKUP\GTA Mods\#LSL\Run\gamemodes\LosSantosLifeRoleplay.pwn(29394) : warning 217: loose indentation
E:\Users\Ollie\Documents\GTABACKUP\GTA Mods\#LSL\Run\gamemodes\LosSantosLifeRoleplay.pwn(29403) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#4

PHP код:
command(world_NonRPplayeridparams[])
{
       
SetPlayerVirtualWorld(playerid2);
       
SendClientMessage(playeridWHITE"You have been moved to the Non-RP world!");
       
SendClientMessage(playeridADMINORANGE"If you was just in the middle of RP, you're fucked!");
}
command(world_RPplayeridparams[])

       
SetPlayerVirtualWorld(playerid0);
       
SendClientMessage(playeridWHITE"You have been moved to the RP world!");

I'm really not sure, but you can try...
Reply
#5

Lol what command processor are you using? If zcmd, try this:

pawn Код:
CMD:world_NonRP(playerid, params[])
{
       SetPlayerVirtualWorld(playerid, 2);
       SendClientMessage(playerid, WHITE, "You have been moved to the Non-RP world!");
       SendClientMessage(playerid, ADMINORANGE, "If you was just in the middle of RP, you're fucked!");
}

CMD:world_RP(playerid, params[])
{  
       SetPlayerVirtualWorld(playerid, 0);
       SendClientMessage(playerid, WHITE, "You have been moved to the RP world!");
}
Reply
#6

You put same post like my, they maybe looks different but they both are on zcmd.
Reply
#7

Fix the identation and post the lines before main().
Reply
#8

Quote:
Originally Posted by kirk
Посмотреть сообщение
Fix the identation and post the lines before main().
Код:
#undef  				MAX_PLAYERS

#define 				CITY_HALL_OBJECTS   				30

#define 				MAX_GROUPS 							20
#define 				MAX_HOUSES 							1000
#define 				MAX_BUSINESSES                      950
#define 				MAX_JOBS 							10
#define 				MAX_PLAYERS       					96
#define                 MAX_SPIKES                          5
#define                 MAX_SPEED_HACK_WARNINGS             4
#define                 MAX_STUDIO_OBJECTS                  37
#define                 MAX_WEAPON_HACK_WARNINGS            2

#define 				STONED_TIME 						61
#define 				CAR_MOD_DELAY_TIME 					61
#define 				LAWYER_RELOAD_TIME 					241
#define 				DETECTIVE_COOLDOWN_TIME 			31
#define 				MATRUN_INABILITY_TIME 				61
#define 				VERSION 							"LSL 0.5 [Volt-Host]"
#define 				FISH_INABILITY_TIME 				901

#define 				VEHICLES_FILE 						"Vehicles.json"

main()
{
}
@VD1337, nope, same error.
Reply
#9

Never mind now. There was a scripter in my Teamspeak chat and he fixed it, lol.
Kind of embarrassing, above line 95 (main()), I forgot a ';' at the last #forward. Heh.
Reply
#10

Ok it's fixed. But remember to always Indent your code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)