SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09/05/2020, 01:10 PM   #1
Little Clucker
Join Date: Aug 2016
Posts: 40
Reputation: 0
Default save amount

Hello! Is there any way to save the amount of damage to a player variable?

I've tried this form but it doesn't work:

PHP Code:
public OnPlayerTakeDamage(playeridissuerid,Floatamountweaponid)
if (
issuerid != INVALID_PLAYER_ID)
PlayerInfo[playerid][TotalDMG] = ++amount;

I need save all the damage one does to another player for a top, but this shows the error:

PHP Code:
C:\Users\thef\Escritorio\SERVER\gamemodes\game.pwn(849) : warning 213tag mismatchexpected tag none ("_"), but found "Float" 
Vy is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Same amount! Man43 Scripting Help 4 25/07/2018 12:21 PM
dmg amount, save in-array FinStar Scripting Help 0 22/09/2016 02:03 PM
How Do I Do This? On Screen Amount Of Kills And amount Of Deaths HayZatic Help Archive 1 01/07/2011 02:26 PM
Custom bank script doesn't save properly/load amount Biesmen Help Archive 0 14/10/2010 02:42 PM
Save amount in string Mike Garber Help Archive 4 19/02/2010 08:45 AM

All times are GMT. The time now is 07:26 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.