06.05.2013, 12:10
I've been trying to make a simple moving gate, here is my code, I just get loads of errors and the compiler crashes.
Main Command under public OnPlayerCommandText(playerid, cmdtext[])
I have: new wgdmgate; at the top of the script and wgdmgate = CreateDynamicObject(980, 1264.48218, -2046.52625, 61.05873, 0.00000, 0.00000, -180.72000); on GameModeInit()
Any ideas? I'm a bit of a noob to PAWN
Main Command under public OnPlayerCommandText(playerid, cmdtext[])
Quote:
|
//WGDMGATE if(!strcmp("/wgo", cmdtext, true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 9, 1264.48218, -2046.52625, 61.05873)){ MoveObject(wgdmgate, 1264.4822, -2046.5262, 55.3511, 1.50); return 1; } } else if(!strcmp("/wgc", cmdtext, true)){ if(IsPlayerInRangeOfPoint(playerid, 9, 1264.48218, -2046.52625, 61.05873)){ MoveObject(wgdmgate, 1264.48218, -2046.52625, 61.05873, 1.50); return 1; } } return 0; } } |
Any ideas? I'm a bit of a noob to PAWN

