#1

Hi, when i try to add a house
say for example:

pawn Код:
CreateHouse("TestHouse2", 1, 2346.872802, 692.999267, 11.460937, 266.857757, 305.001586, 999.148437, 2, 1);
I get this error:
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(5 : warning 225: unreachable code
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(5 : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(63) : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(77) : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(82) : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(85) : warning 209: function "CreateHouse" should return a value

Does anyone know whats wrong?

I am following :
https://sampforum.blast.hk/showthread.php?tid=118379

I didnt skip a single step, and before i add the createhouse, it compiles fine... O.o
Reply
#2

Quote:
Originally Posted by kickflipdude
Посмотреть сообщение
Hi, when i try to add a house
say for example:

pawn Код:
CreateHouse("TestHouse2", 1, 2346.872802, 692.999267, 11.460937, 266.857757, 305.001586, 999.148437, 2, 1);
I get this error:
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(5 : warning 225: unreachable code
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(5 : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(63) : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(77) : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(82) : warning 217: loose indentation
C:\Users\Anoop\Desktop\samp03csvr_R2-2_win32\gamemodes\Server.pwn(85) : warning 209: function "CreateHouse" should return a value

Does anyone know whats wrong?

I am following :
https://sampforum.blast.hk/showthread.php?tid=118379

I didnt skip a single step, and before i add the createhouse, it compiles fine... O.o
Line 58, 63, 77. 82 all have to much, or not enough spacing.
Line 85, you need a return 1;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)