#1

hello,i got problem with gamemode,if someone logs in my server,then samp-server crashes.here is the gamemode
http://pastebin.com/m4366a492


no errors but few warnings

Quote:

C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\JDM.pwn(25 64) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\JDM.pwn(25 66) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\JDM.pwn(25 64) : warning 204: symbol is assigned a value that is never used: "tmp2"
C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\JDM.pwn(25 64) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\JDM.pwn(25 64 -- 295 : warning 203: symbol is never used: "money"
C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\JDM.pwn(25 64 -- 295 : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Warnings.

Reply
#2

sorry for double post but...no one?oh cmon please
Reply
#3

http://pastebin.com/dbda7384
Reply
#4

how to fix these

Quote:

C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\Untitledzz .pwn(1119) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\Untitledzz .pwn(1142) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\Ingrid\Desktop\Mafia\gamemodes\Untitledzz .pwn(230 : error 017: undefined symbol "IsNumeric"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply
#5

Add the IsNumeric function?
Reply
#6

how?xD im n00b.
Reply
#7

pawn Код:
IsNumeric(const string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0')
        {
            return 0;
        }
    }
    return 1;
}
Add that some where in your script. :P
Reply
#8

thanks for helping but...uh crap it crashes still please help:S
Reply
#9

anyone please?
Reply
#10

Mmm... try to do this on the line 2564.

Change this:
pawn Код:
new cmd[256], tmp[256], tmp2[256];
To this:
pawn Код:
new cmd[256];
new tmp[256];
new tmp2[256];
And tell me.
Reply
#11

crap still,any more ideas?
Reply
#12

pawn Код:
#pragma unused ret_memcpy
Reply
#13

Sory for spam,

Delete "string", "tmp2", "tmp" In your mode.
Reply
#14

np,but still craap any more ideas ?
Reply
#15

No more ideas
Reply
#16

aww crap
Reply
#17

u sux, learn script :S

utils.inc
Код:
IsNumeric(const string[])
{
	for (new i = 0, j = strlen(string); i < j; i++)
	{
		if (string[i] > '9' || string[i] < '0') return 0;
	}
	return 1;
}
and top script
Код:
#include <utils>
Reply
#18

He's fixed that problem. It's crashing under the login command.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)